var myChart = echarts.init(document.getElementById("b1"))
var option = {
    series:{
        type:'wordCloud',
        data:[
            {name:'赵',value:100},
            {name:'钱',value:90},
            {name:'孙',value:80},
            {name:'李',value:70},
            {name:'周',value:60},
            {name:'吴',value:50},
            {name:'郑',value:40},
            {name:'王',value:30},
        ],
    },
    title:{
        text:'词云图',
        subtext:'沈林涛',
    },
};
myChart.setOption(option)


var myChart2 = echarts.init(document.getElementById("b2"))
var dataX = [];
for(var i=100;i>0;i--){
    dataX.push({
        name:String(i),
        value:i
    });
}
var option2 = {
    title: {
        text: '词云图--沈林涛',
    },
    series:{
        type:'wordCloud',
        data:dataX
    },
    rotationRange: [-45, 180, 45, 90],
};
myChart2.setOption(option2)
